From: Timo Röhling Date: Thu, 23 Dec 2021 21:57:53 +0000 (+0100) Subject: Fix draco linkage X-Git-Tag: archive/raspbian/1.9.25+dfsg3-1+rpi1^2~85 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22Program/%22http:/www.example.com/cgi/%22https:/%22Program?a=commitdiff_plain;h=b9f93daecc42fdff68f88ff67e46a250df284728;p=filament.git Fix draco linkage --- diff --git a/debian/patches/0009-Fix-library-export-for-Debian.patch b/debian/patches/0009-Fix-library-export-for-Debian.patch index 5a90ada..593af7d 100644 --- a/debian/patches/0009-Fix-library-export-for-Debian.patch +++ b/debian/patches/0009-Fix-library-export-for-Debian.patch @@ -745,7 +745,7 @@ index 37db5a9..dd13c29 100644 + target_link_libraries(test_transcoder PRIVATE ${TARGET} GTest::gtest) endif() diff --git a/libs/gltfio/CMakeLists.txt b/libs/gltfio/CMakeLists.txt -index b759b0b..4e3c21f 100644 +index b759b0b..1f6ed14 100644 --- a/libs/gltfio/CMakeLists.txt +++ b/libs/gltfio/CMakeLists.txt @@ -106,6 +106,12 @@ set(DUMMY_SRC "${RESOURCE_DIR}/dummy.c") @@ -792,7 +792,7 @@ index b759b0b..4e3c21f 100644 +) +target_compile_features(gltfio_core PUBLIC cxx_std_17) +target_compile_definitions(gltfio_core PRIVATE -DGLTFIO_DRACO_SUPPORTED=1) -+target_link_libraries(gltfio_core PRIVATE draco::draco_shared) ++target_link_libraries(gltfio_core PRIVATE ${DRACO_LIBRARIES}) +target_link_libraries(gltfio_core PRIVATE filament::math filament::utils filament::filament cgltf filament::stb filament::geometry filament::gltfio_resources tsl::robin_map trie) +set_target_properties(gltfio_core PROPERTIES + OUTPUT_NAME "filament_gltfio_core"